package com.example.util;

public class SqlThreadLocalUtil {

    private final static ThreadLocal<String> CURRENT_SQL_CONTENT = new ThreadLocal<>();


    public static void setSqlContent(String sqlContent) {
        CURRENT_SQL_CONTENT.set(sqlContent);
    }

    public static String getCurrentSqlContent() {
        return CURRENT_SQL_CONTENT.get();
    }

    public static void removeAll() {
        CURRENT_SQL_CONTENT.remove();
    }

}

